package model.diagram.edit.parts;

import model.diagram.edit.policies.SeasonsPackSeasonItemSemanticEditPolicy;

import org.eclipse.draw2d.Connection;
import org.eclipse.draw2d.FlowLayout;
import org.eclipse.draw2d.RectangleFigure;
import org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionNodeEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
import org.eclipse.gmf.runtime.notation.View;

/**
 * @generated
 */
public class SeasonsPackSeasonEditPart extends ConnectionNodeEditPart implements
		ITreeBranchEditPart {

	/**
	 * @generated
	 */
	public static final int VISUAL_ID = 4003;

	/**
	 * @generated
	 */
	public SeasonsPackSeasonEditPart(View view) {
		super(view);
	}

	/**
	 * @generated
	 */
	protected void createDefaultEditPolicies() {
		super.createDefaultEditPolicies();
		installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
				new SeasonsPackSeasonItemSemanticEditPolicy());
	}

	/**
	 * Creates figure for this edit part.
	 * 
	 * Body of this method does not depend on settings in generation model
	 * so you may safely remove <i>generated</i> tag and modify it.
	 * 
	 * @generated
	 */

	protected Connection createConnectionFigure() {
		return (Connection) new SeasonFigure();
	}

	/**
	 * @generated
	 */
	public SeasonFigure getPrimaryShape() {
		return (SeasonFigure) getFigure();
	}

	/**
	 * @generated
	 */
	public class SeasonFigure extends RectangleFigure {

		
		/**
		 * @generated
		 */
		private WrappingLabel fFigureSeasonUUIDFigure;
		/**
		 * @generated
		 */
		private WrappingLabel fFigureSeasonNameFigure;
		/**
		 * @generated
		 */
		private WrappingLabel fFigureSeasonDescriptionFigure;
		/**
		 * @generated
		 */
		private WrappingLabel fFigureSeasonsPackSeasonUUIDFigure;
		/**
		 * @generated
		 */
		private WrappingLabel fFigureSeasonsPackSeasonNameFigure;

		/**
		 * @generated
		 */
		public SeasonFigure() {

			FlowLayout layoutThis = new FlowLayout();
			layoutThis.setStretchMinorAxis(false);
			layoutThis.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

			layoutThis.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
			layoutThis.setMajorSpacing(5);
			layoutThis.setMinorSpacing(5);
			layoutThis.setHorizontal(true);

			this.setLayoutManager(layoutThis);

			createContents();
		}

		/**
		 * @generated
		 */
		private void createContents() {

			fFigureSeasonNameFigure = new WrappingLabel();
			fFigureSeasonNameFigure.setText("<...>");

			this.add(fFigureSeasonNameFigure);

			fFigureSeasonUUIDFigure = new WrappingLabel();
			fFigureSeasonUUIDFigure.setText("<...>");

			this.add(fFigureSeasonUUIDFigure);

			fFigureSeasonNameFigure = new WrappingLabel();
			fFigureSeasonNameFigure.setText("<...>");

			this.add(fFigureSeasonNameFigure);

			fFigureSeasonDescriptionFigure = new WrappingLabel();
			fFigureSeasonDescriptionFigure.setText("<...>");

			this.add(fFigureSeasonDescriptionFigure);

			fFigureSeasonsPackSeasonUUIDFigure = new WrappingLabel();
			fFigureSeasonsPackSeasonUUIDFigure.setText("<...>");

			this.add(fFigureSeasonsPackSeasonUUIDFigure);

			fFigureSeasonsPackSeasonNameFigure = new WrappingLabel();
			fFigureSeasonsPackSeasonNameFigure.setText("<...>");

			this.add(fFigureSeasonsPackSeasonNameFigure);

		}

		

		/**
		 * @generated
		 */
		public WrappingLabel getFigureSeasonUUIDFigure() {
			return fFigureSeasonUUIDFigure;
		}

		/**
		 * @generated
		 */
		public WrappingLabel getFigureSeasonNameFigure() {
			return fFigureSeasonNameFigure;
		}

		/**
		 * @generated
		 */
		public WrappingLabel getFigureSeasonDescriptionFigure() {
			return fFigureSeasonDescriptionFigure;
		}

		/**
		 * @generated
		 */
		public WrappingLabel getFigureSeasonsPackSeasonUUIDFigure() {
			return fFigureSeasonsPackSeasonUUIDFigure;
		}

		/**
		 * @generated
		 */
		public WrappingLabel getFigureSeasonsPackSeasonNameFigure() {
			return fFigureSeasonsPackSeasonNameFigure;
		}

	}

}
